Rename main thread from '<main>' to 'main'.
authorWangshan Lu <wisagan@gmail.com>
Sat, 28 May 2016 10:05:58 +0000 (18:05 +0800)
committerWangshan Lu <wisagan@gmail.com>
Sat, 28 May 2016 10:05:58 +0000 (18:05 +0800)
This pull request resolves the test failure in rust pull request 33803

tests/bench.rs
tests/install.rs

index ea8f557400d30f2457b6c67ea8f13303e5f831f0..7a66ccc67c3e718134003eb13226de6bddbceb3f 100644 (file)
@@ -187,7 +187,7 @@ test bench_hello ... ")
                        .with_stderr_contains(format!("\
 [COMPILING] foo v0.5.0 ({})
 [RUNNING] target[..]release[..]foo-[..]
-thread '<main>' panicked at 'assertion failed: \
+thread 'main' panicked at 'assertion failed: \
     `(left == right)` (left: \
     `\"hello\"`, right: `\"nope\"`)', src[..]foo.rs:14
 [..]
index 0547c44199942210441561240ab49248b064a566..1b6f36540e953044a05e354547a0a1cf55a51eb3 100644 (file)
@@ -715,7 +715,7 @@ fn reports_unsuccessful_subcommand_result() {
                 execs().with_status(0).with_stdout_contains("    fail\n"));
     assert_that(cargo_process("fail"),
                 execs().with_status(101).with_stderr_contains("\
-thread '<main>' panicked at 'explicit panic', [..]
+thread 'main' panicked at 'explicit panic', [..]
 "));
 }